package daima;
public class Armstrong {
    public static void main(String[] args) {
        int m;
        int a;
        int b;
        int c;
        for(m=100;m<1000;m++) {
            a=m/100;
            b=m/10-(m/100)*10;
            c=m%10;
            if(a*a*a+b*b*b+c*c*c==m) {
                System.out.println(m);
            }
        }
    }
}